package com.guli.edu.mapper;

import com.guli.edu.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guli.edu.entity.dto.CoursePublishDto;
import com.guli.edu.vo.CourseWebVo;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author Daniel
 * @since 2019-03-26
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    //根据课程id查询课程详情
    //两种传参的方式 一种是@RequestParam("id")   一种是根据下标{0} {1}
     CoursePublishDto getCourseInfoById(@RequestParam("id") String  courseId);

     //课程和讲师信息的获取
     CourseWebVo selectInfoWebById(String courseId);

}
